home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Gamers Delight 2
/
Gamers Delight 2.iso
/
Aminet
/
game
/
misc
/
TownMaze.lha
/
TownMaze
/
src.lzh
/
showmaze.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-08-04
|
706b
|
38 lines
/*
** showmaze.c Copyright 1991 Kent Paul Dolan,
** Mountain View, CA, USA 94039-0755
**
** Written to satisfy an inquiry on USENet's rec.games.programmer newsgroup.
** May be freely used or modified in any non-commercial work. Copyrighted
** only to prevent patenting by someone else.
*/
#include <stdio.h>
#include "townmaze.h"
#include "townproto.h"
#ifdef __STDC__
void showmaze()
#else
int showmaze()
#endif
{
int i, j;
/*
** Draw the character version of the maze to stdout.
*/
#if PROGRESS
fprintf(stdout,"\n");
#endif
for (i = 0; i < mazeheight; i++)
{
for (j = 0; j < mazewidth; j++)
fprintf(stdout,"%c",cmaze[i][j]);
fprintf(stdout,"\n");
}
return;
}